package com.team622.shop.user.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.team622.shop.user.model.dto.MemberInfoPageQueryDTO;
import com.team622.shop.user.model.entity.MemberInfo;
import com.team622.shop.user.model.vo.MemberInfoPageVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author team622
 * @since 2025-07-15
 */
public interface MemberInfoMapper extends BaseMapper<MemberInfo> {

    /**
     * 分页查询会员信息，联表查询Member和MemberInfo
     *
     * @param page     分页参数
     * @param queryDTO 查询条件
     * @return 分页结果
     */
    IPage<MemberInfoPageVO> selectMemberInfoPage(IPage<MemberInfoPageVO> page, @Param("query") MemberInfoPageQueryDTO queryDTO);
}
